{include file="common/head"/}
<div class="admin-main layui-anim layui-anim-upbit">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>订单信息</legend>
    </fieldset>
    <form class="layui-form layui-form-pane" lay-filter="form">
        <div class="layui-form-item">
            <label class="layui-form-label">订单号</label>
            <div class="layui-input-4">
                <input type="text" name="order_id" lay-verify="required" disabled class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">订单价格</label>
            <div class="layui-input-4">
                <input type="text" name="order_price" lay-verify="required" disabled class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">保证金</label>
            <div class="layui-input-4">
                <input type="text" name="buy_deposit" lay-verify="required" disabled class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                元
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">技术服务费</label>
            <div class="layui-input-4">
                <input type="text" name="buy_technology" lay-verify="required" disabled class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                元
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">转账手续费</label>
            <div class="layui-input-4">
                <input type="text" name="buy_transfer" lay-verify="required" disabled class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                元
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">查验费</label>
            <div class="layui-input-4">
                <input type="text" name="buy_check" lay-verify="required" disabled class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                元
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">鉴别费</label>
            <div class="layui-input-4">
                <input type="text" name="buy_identify" lay-verify="required" disabled class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                元
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">包装服务费</label>
            <div class="layui-input-4">
                <input type="text" name="buy_pack" lay-verify="required" disabled class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                元
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">保证金支付时间</label>
            <div class="layui-input-4">
                <input type="text" name="pay_time" lay-verify="required" disabled class="layui-input">
            </div>
        </div>
        
    </form>

    <fieldset class="layui-elem-field layui-field-title">
        <legend>卖家信息</legend>
    </fieldset>
    <form class="layui-form layui-form-pane" lay-filter="form">
        <div class="layui-form-item">
            <label class="layui-form-label">卖家姓名</label>
            <div class="layui-input-4">
                <input type="text" name="nickname" lay-verify="required" disabled class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-4">
                <input type="text" name="mobile" lay-verify="required" disabled class="layui-input">
            </div>
        </div>
    </form>

    <fieldset class="layui-elem-field layui-field-title">
        <legend>商品信息</legend>
    </fieldset>
    <form class="layui-form layui-form-pane" lay-filter="form">
        <div class="layui-form-item">
            <label class="layui-form-label">商品名称</label>
            <div class="layui-input-4">
                <input type="text" name="name" lay-verify="required" disabled class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商品描述</label>
            <div class="layui-input-4" id="content">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="admin_id">
                <!-- <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button> -->
                <a href="{:url('index')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
            </div>
        </div>
    </form>
</div>
{include file="common/foot"/}
<script>
    layui.use(['form', 'layer','upload'], function () {
        var form = layui.form, layer = layui.layer,$= layui.jquery,upload = layui.upload;
        var info = {$info|raw};
        form.val("form", info);
        if(info.content){
            $('#content').html(info.content);
        }
        form.render();
        form.on('submit(submit)', function (data) {
            loading =layer.load(1, {shade: [0.1,'#fff']});
            $.post("", data.field, function (res) {
                layer.close(loading);
                if (res.code > 0) {
                    layer.msg(res.msg, {time: 1800, icon: 1}, function () {
                        location.href = res.url;
                    });
                } else {
                    layer.msg(res.msg, {time: 1800, icon: 2});
                }
            });
        });
       
    });
</script>